package com.qmscy.sparrow.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * JWT properties
 *
 * @Author: wangxiaonan
 * @Date: 2019/1/6
 **/
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    private String header;
    private long expire;
    private String secret;

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
